<template>
  <div>
    <!-- <ul>
      <li v-for="item in users">
        <p>序号：{{item.id}}</p>
        <p>姓名：{{item.name}}</p>
        <p>年龄：{{item.age}}</p>
      </li>
    </ul> 
      key:保证唯一且不变
    -->
    
    <ul>
     <li v-for="(item,index) in arr" :key="index">
         {{item}}
          <input type="text" 请输入你的内容>
     </li>
    </ul>
    <button @click="arr.unshift('omg')">按钮</button>
  </div>
</template>

<script>

export default {
  data () {
    return {
      arr: ['first', 'second'],
      users: [
        {
          id: 1,
          name: 'zs',
          age: 18
        },
        {
          id: 2,
          name: '李四',
          age: 20
        },
        {
          id: 3,
          name: '王五',
          age: 30
        }
      ]
    }
  }
}
</script>

<style>

</style>